package inventory.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sxt
 * @since 2019-11-06
 */
public class MaterialCategory extends Model<MaterialCategory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "category_id", type = IdType.UUID)
    private String categoryId;
    private String categoryName;
    private String categoryContext;


    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryContext() {
        return categoryContext;
    }

    public void setCategoryContext(String categoryContext) {
        this.categoryContext = categoryContext;
    }

    @Override
    protected Serializable pkVal() {
        return this.categoryId;
    }

    @Override
    public String toString() {
        return "MaterialCategory{" +
        ", categoryId=" + categoryId +
        ", categoryName=" + categoryName +
        ", categoryContext=" + categoryContext +
        "}";
    }
}
